#ifndef USERITEM_H
#define USERITEM_H

#include <QWidget>

namespace Ui {
class UserItem;
}

class UserItem : public QWidget
{
    Q_OBJECT

public:
    explicit UserItem(QWidget *parent = nullptr);
    ~UserItem();
    void setPixmap(QString path);
    void setName(QString name);
    void setSign(QString message);
    void setOnlineStatus(bool statu);

    QString getName() const;
    QString getUserId() const;
    void setUserId(QString userId);

private:
    Ui::UserItem *ui;
    QString userId;
};

#endif // USERITEM_H
